package com.fy.common.api;


/**
 * 枚举了一些常用API操作码
 * Created by macro on 2019/4/19.
 */
public enum OperationCode {
    SUCCEED_10200(10200, "操作成功"),

    ERROR_40400(40400, "手机号或密码错误"),
    ERROR_40300(40300, "验证码错误"),

    AWAIT_30100(30100, "入驻资料已提交"),
    ETURN_30200(30200, "入驻资料后台处理中"),


    SYSTEM_ERROR(-1, "系统异常"),
    SYSTEM_BUSY(000001, "系统繁忙,请稍候再试"),
    GATEWAY_NOT_FOUND_SERVICE(010404, "服务未找到"),
    GATEWAY_ERROR(010500, "网关异常"),
    GATEWAY_CONNECT_TIME_OUT(010002, "网关超时"),
    ARGUMENT_NOT_VALID(020000, "请求参数校验不通过"),

    INVALID_TOKEN(020001, "无效token"),
    UPLOAD_FILE_SIZE_LIMIT(020010, "上传文件大小超过限制"),

    /**分销商*/
    SUCCEED_61000(61000,"操作成功"),
    DELETE_E_ORDER_OK(61001,"删除实物成功"),
    DELETE_E_ORDER_NO(61002,"删除实物失败"),
    DELETE_T_ORDER_OK(61003,"删除门票成功"),
    DELETE_T_ORDER_NO(61004,"删除门票失败"),

    /**消费者*/
    SUCCESS_REATE_TRAVELER_81000(81000,"添加出行人信息成功"),
    SUCCESS_CREATE_OBJECTORDER_81200(81200,"添加实物订单成功"),
    SUCCESS_CREATE_TRAVELERORDER_81300(81300,"添加门票订单成功"),
    SUCCESS_CREATE_ADDRESS_80000(80000,"添加收货地址"),




    ;

    private long code;
    private String message;

    OperationCode(long code, String message) {
        this.code = code;
        this.message = message;
    }

    public long getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
